package com.game.sprite;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;

/**
* @author oven:
* @version 创建时间：2013-1-3 下午7:12:03
* 
*/
public class BasicBitmap {
	Bitmap bmp;
	Matrix matrix;
	
	public Bitmap getBmp() {
		return bmp;
	}
	public Matrix getMatrix() {
		return matrix;
	}
	public void setBmp(Bitmap bmp) {
		this.bmp = bmp;
	}
	public void setMatrix(Matrix matrix) {
		this.matrix = matrix;
	}
	
	public void draw(Canvas canvas,float x,float y,Paint paint){
		canvas.save();
		canvas.translate(x,y);
		canvas.drawBitmap(bmp,matrix,paint);
		canvas.restore();
	}
}

